package sample.tangocho.service;

import sample.tangocho.dataaccess.CardDao;
import sample.tangocho.dataaccess.CardDaoImpl;
import android.content.Context;

public class AddCardServiceImpl implements AddCardService {

	private CardDao cardDao;

	public AddCardServiceImpl(Context context) {

		// TODO DI
		cardDao = new CardDaoImpl(context);
	}

	@Override
	public void addCard(long tangochoId, String frontText, String backText) {
		cardDao.insertCard(tangochoId, frontText, backText);
	}

}
